﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class comyoozoogtaExtensionUGUIScreenOrientationExScreenOrientManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 20, 5, 4);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListenerCount", _m_GetListenerCount);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOrientationChangeCallBack", _m_AddOrientationChangeCallBack);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveOrientationChangeCallBack", _m_RemoveOrientationChangeCallBack);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllOrientationAction", _m_RemoveAllOrientationAction);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOrientationChangeListener", _m_AddOrientationChangeListener);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveOrientationChangeListener", _m_RemoveOrientationChangeListener);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceCleanup", _m_ForceCleanup);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScreenOrientation", _m_SetScreenOrientation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GameViewSize", _m_GameViewSize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsLandscape", _m_IsLandscape);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPortrait", _m_IsPortrait);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenAutoRotation", _m_OpenAutoRotation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SaveToLocal", _m_SaveToLocal);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenLandscapeLeft", _m_OpenLandscapeLeft);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenPortrait", _m_OpenPortrait);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceChangeLandscape", _m_ForceChangeLandscape);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RevertForceChangeLandscape", _m_RevertForceChangeLandscape);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScreenOrientationIsPortrait", _m_GetScreenOrientationIsPortrait);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSupportPortraitRotation", _m_IsSupportPortraitRotation);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurrentLogicOrientation", _g_get_CurrentLogicOrientation);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "EditorChangePlayMode", _g_get_EditorChangePlayMode);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LanscapeOnlyRead", _g_get_LanscapeOnlyRead);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "PortraitOnlyRead", _g_get_PortraitOnlyRead);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DebugMode", _g_get_DebugMode);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "EditorChangePlayMode", _s_set_EditorChangePlayMode);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "LanscapeOnlyRead", _s_set_LanscapeOnlyRead);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "PortraitOnlyRead", _s_set_PortraitOnlyRead);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "DebugMode", _s_set_DebugMode);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetListenerCount(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetListenerCount(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddOrientationChangeCallBack(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _key = LuaAPI.lua_tostring(L, 2);
                    System.Action<UnityEngine.ScreenOrientation> _action = translator.GetDelegate<System.Action<UnityEngine.ScreenOrientation>>(L, 3);
                    
                    gen_to_be_invoked.AddOrientationChangeCallBack( _key, _action );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveOrientationChangeCallBack(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _key = LuaAPI.lua_tostring(L, 2);
                    
                    gen_to_be_invoked.RemoveOrientationChangeCallBack( _key );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveAllOrientationAction(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RemoveAllOrientationAction(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddOrientationChangeListener(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler _listener = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler)translator.GetObject(L, 2, typeof(com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler));
                    bool _needForceApply = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.AddOrientationChangeListener( _listener, _needForceApply );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler>(L, 2)) 
                {
                    com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler _listener = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler)translator.GetObject(L, 2, typeof(com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler));
                    
                    gen_to_be_invoked.AddOrientationChangeListener( _listener );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager.AddOrientationChangeListener!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveOrientationChangeListener(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler _listener = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler)translator.GetObject(L, 2, typeof(com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientationChangeHandler));
                    
                    gen_to_be_invoked.RemoveOrientationChangeListener( _listener );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ForceCleanup(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ForceCleanup(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<Yoozoo.Framework.Core.Singleton<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager>.Options>(L, 2)) 
                {
                    Yoozoo.Framework.Core.Singleton<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager>.Options _options = (Yoozoo.Framework.Core.Singleton<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager>.Options)translator.GetObject(L, 2, typeof(Yoozoo.Framework.Core.Singleton<com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager>.Options));
                    
                    gen_to_be_invoked.Initialize( _options );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1) 
                {
                    
                    gen_to_be_invoked.Initialize(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager.Initialize!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetScreenOrientation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.ScreenOrientation _orientation;translator.Get(L, 2, out _orientation);
                    
                    gen_to_be_invoked.SetScreenOrientation( _orientation );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GameViewSize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GameViewSize(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsLandscape(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.IsLandscape(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsPortrait(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.IsPortrait(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OpenAutoRotation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OpenAutoRotation(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SaveToLocal(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.ScreenOrientation _orientation;translator.Get(L, 2, out _orientation);
                    
                    gen_to_be_invoked.SaveToLocal( _orientation );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OpenLandscapeLeft(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OpenLandscapeLeft(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OpenPortrait(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OpenPortrait(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ForceChangeLandscape(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ForceChangeLandscape(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RevertForceChangeLandscape(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RevertForceChangeLandscape(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetScreenOrientationIsPortrait(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetScreenOrientationIsPortrait(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsSupportPortraitRotation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.IsSupportPortraitRotation(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CurrentLogicOrientation(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.CurrentLogicOrientation);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_EditorChangePlayMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EditorChangePlayMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LanscapeOnlyRead(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.LanscapeOnlyRead);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_PortraitOnlyRead(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.PortraitOnlyRead);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DebugMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DebugMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_EditorChangePlayMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.EditorChangePlayMode = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_LanscapeOnlyRead(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.LanscapeOnlyRead = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_PortraitOnlyRead(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.PortraitOnlyRead = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DebugMode(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager gen_to_be_invoked = (com.yoozoo.gta.Extension.UGUI.ScreenOrientationEx.ScreenOrientManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.DebugMode = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
